package org.bim.view.drag.design.base;

import com.alibaba.fastjson.JSON;
import org.bim.view.drag.design.api.vo.TUserVO;
import org.bim.view.drag.design.util.SafeExpireMap;

import java.util.concurrent.TimeUnit;

public class OnlineUserMap extends SafeExpireMap<String, TUserVO> {
    public OnlineUserMap(long expTime, TimeUnit unit) {
        super(expTime, unit);
    }

    @Override
    protected void baseExpireEvent(String key, TUserVO val) {
      logger.info("用户信息已过期，{}", JSON.toJSONString(val));
    }
}
